package edu.bw.service.Impl;

import edu.bw.service.ProductService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;


/**
 * Spring-Junit5整合:加载配置文件applicationContext.xml
 */
@SpringJUnitConfig(locations = "classpath:applicationContext.xml")
class ProductServiceImplTest03 {

    @Autowired
    private ProductService productService;

    @Test
    public void findAll() {
        productService.findAll().forEach(System.out::println);

    }
}